// 引入路由
const Router = require("koa-router");
const router = new Router();
const list = require("./list");
const home = require("./home");
const login = require("./login");
router.get("/home", async (ctx) => {
  ctx.body = "首页";
});
router.use("/list", list.routes(), list.allowedMethods());
router.use("/home", home.routes(), home.allowedMethods());
router.use("/login", login.routes(), login.allowedMethods());
router.redirect("/", "/home");
// 导出
module.exports = router;
